﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UC_Group_Edit.ascx.cs" Inherits="QuanLyKhachSan.UC_Group_Edit" %>
<%@ Register Assembly="Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<script src='<%=ResolveUrl("~/Scripts/jquery-1.4.1.min.js")%>' type="text/javascript"></script>
<script type="text/javascript" language="javascript">
    $(document).ready(function () {
        try {
            var hfStatus = document.getElementById('<%=hfStatus.ClientID%>');
            if (hfStatus.value == "1") {
                parent.Close("isUpdated");
            }
        } catch (e) {
            alert(e)
        }
    })
    function cmdCancel_OnClientClicking(sender, args) {
        try {
            args.set_cancel(true);
            parent.Close("");
        } catch (e) {
            alert(e);
        }
    }
</script>
<style type="text/css">
    .style1
    {
        font-family: Tahoma;
        font-size: 12px;
        width: 100px;
    }
</style>
<table width="100%">
    <tr>
        <td class="style1">
            <asp:Label ID="lblGroupName" runat="server" Text="Tên nhóm:(*)"></asp:Label>
        </td>
        <td>
            <telerik:RadTextBox ID="txtGroupName" runat="server" EmptyMessage="Nhập tên nhóm" Width="250">
            </telerik:RadTextBox>
            <br />
            <asp:RequiredFieldValidator
                ID="rfvGroupName" Runat="server" Display="Dynamic" ControlToValidate="txtGroupName"
                ErrorMessage="Yêu cầu nhập tên nhóm" style="font-family: Tahoma; font-size: 12px">
            </asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="style1">
            <asp:Label ID="lblDescriptions" runat="server" Text="Mô tả:"></asp:Label>
        </td>
        <td>
            <telerik:RadTextBox ID="txtDescriptions" runat="server" EmptyMessage="Nhập mô tả nhóm" Width="250" Height="50" TextMode="MultiLine" >
            </telerik:RadTextBox>
        </td>
    </tr>
    <tr>
        <td class="style1">
            <asp:Label ID="lblIsActived" runat="server" Text="Hoạt động:"></asp:Label>
        </td>
        <td>
            <asp:CheckBox ID="chkIsActived" runat="server" Checked="true"/>     
        </td>
    </tr>
    <tr>
        <td colspan="2" align="center">            
            <table width="200px">
                <tr>
                    <td align="right">
                        <telerik:RadButton ID="cmdCancel" runat="server" Text="Cancel" OnClientClicking="cmdCancel_OnClientClicking">
                        </telerik:RadButton>    
                    </td>
                    <td align="left">
                        <telerik:RadButton ID="cmdOK" runat="server" Text="OK" onclick="cmdOK_Click">
                        </telerik:RadButton> 
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<asp:HiddenField ID="hfStatus" runat="server" Value="0" />
